package lianxi;

import java.util.Locale;

public class Test {
    public static void main(String[] args) {
        String str = "  weofbw;efbgwi;ifb;owfglif;wih;wofwh  ";
        int length = str.length();
        System.out.println("字符串的长度为：" + length);
        str = str.trim();
        System.out.println("去除两边空白符：" + str);
       str=str.toUpperCase();
        System.out.println(str);
        str=str.toLowerCase();
        System.out.println(str);
        boolean a=str.startsWith("w");
        System.out.println(a);
        boolean b=str.endsWith("wofwh");
        System.out.println(b);
        char c=str.charAt(15);
        System.out.println(c);
        System.out.println("------------------");
        int d=str.indexOf("o",19);
        System.out.println(d);
        int d1=str.lastIndexOf("o");
        System.out.println(d1);
        String s=str.substring(7,13);
        System.out.println(s);
        System.out.println("---------------");
        int a1=55534;
        String a2=String.valueOf(a1);
        System.out.println(a2);

    }
}
